<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .warper{
            perspective: 800px;
        }
        .box{
            width: 400px;
            height: 400px;
            margin: 200px auto;
            /* background-color: aqua; */
            position: relative;
            transform-style: preserve-3d;
            transform: rotateX(0deg) rotateY(10deg);

        }
        .box div{
            position: absolute;
            width: 400px;
            height: 400px;
            line-height: 400px;
            text-align: center;
            font-size: 89px;

        }
        .front{
            background-color: #faca;
            transform: translateZ(200px);
        }
        .back{
            background-color: #fcaa;
            transform: rotateY(180deg) translateZ(200px);
        }
        .left{
            background-color: #cfaa;
            transform: rotateY(-90deg) translateZ(200px);
        }
        .right{
            background-color: #cafa;
            transform: rotateY(90deg) translateZ(200px);
        }
        .top{
            background-color: #acfa;
            transform: rotateX(90deg) translateZ(200px);
        }
        .bottom{
            background-color: #afca;
            transform: rotateX(-90deg) translateZ(200px);

        }
    </style>
</head>
<body>
    <div class="warper">
        <div class="box">
            <div class="front">1</div>
            <div class="back">6</div>
            <div class="left">2</div>
            <div class="right">3</div>
            <div class="top">4</div>
            <div class="bottom">5</div>

        </div>
    </div>
</body>
</html>